<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<title>Movie Manager 2005 By Ben Rowe</title>
		<link rel="stylesheet" type="text/css" href="templates/{$config.smarty_template}/styles/{$config.smarty_template_css}" />
		{foreach from=$js item=js}<script src="templates/{$config.smarty_template}/jscript/{$js}" language="Javascript" type="text/javascript"></script>{/foreach}
		<script type="text/javascript" language="javascript">

			var template = '{$config.smarty_template}';

		</script>
	</head>
	<body>
		<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td><a href="index.php"><img src="templates/{$config.smarty_template}/images/logo.gif" alt="logo" /></a></td>
				<td class="menu_secondary" align="right" valign="bottom">
					{if $authenticated}
						<a href="index.php?what=config" title="Update the configuration options.">Configuration</a> |
						<a href="index.php?what=invite" title="Invite another member to list their movie collection.">Invite</a> |
						<a href="index.php?what=prefrences" title="">Your Prefrences</a> |
						<a href="index.php?do=logout" title="Logout of Movie Manager">Logout</a>
					{/if}
				</td>
			</tr>
			<tr class="menu_primary">
				<td colspan="2">
					<table width="100%" cellspacing="0" cellpadding="0">
						<tr>
							<td>
								<ul class="menu_links">
								<li><a href="index.php">Home</a></li>
								{if $authenticated}
									<li><a href="index.php?what=mymovies">My Collection</a></li>
									<li><a href="index.php?what=wishlist">Wishlist</a></li>
									<li><a href="index.php?what=members">Members</a></li>
									<li><a href="index.php?what=stats">Statistics</a></li>
								{/if}
								</ul>
							</td>
							<td align="right">
								{if $authenticated}
								Genre
								<select onchange="if(this.value != 'null') document.location.href = 'index.php?what=movie&amp;do=browse&amp;id='+this.value;">
									<option value="null">Select A Genre</option>
									<!--<option value="null"></option>-->
								{foreach from=$genres item=g name=genres}
									<option value="{$g.id}" {if $g.id == $content.genre_id}selected{/if}>{$g.name}<!--&nbsp;&nbsp;&nbsp;[{$g.movie_count}]--></option>
								{/foreach}
								</select>
								{/if}
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<table width="100%">
	<tr>
		<td valign="top" style="padding: 15px;">
			<noscript><div>Javascript must be enabled.</div></noscript>
			{$pc}
			{if $content.msg}
				<div style="padding: 7px; background: #EFEFEF; font-weight: bold; border: 1px solid #444444;">{$content.msg}</div><br /><br />
			{/if}
			{if $template}
				{include file=$template}
			{/if}
		</td>
		{if $authenticated}
		<td id="column">

			<table width="100%" style="background: #FFF; border: 1px solid #CFCFCF; padding: 5px;">
				<tr>
					<td align="right">
						<form method="get" action="index.php">
						<input type="hidden" name="what" value="search" />
						<input type="text" name="search" value="{$content.search}" size="16" /> <input type="submit" value="Search Movies &raquo;" /><br />
						<a href="index.php?what=search&amp;do=advanced">Advanced Search</a>
						</form>
					</td>

				</tr>
			</table>
			<br />

			<table width="100%" style="background: #FFF; border: 1px solid #CFCFCF; padding: 5px;">
				<tr>
					<td align="right"><strong>Quick Add</strong></td>
				</tr>
				<tr>
					<td align="right">
						<form method="post" action="index.php">
						<input type="hidden" name="what" value="movie" />
						<input type="hidden" name="do" value="add" />
						<input type="text" name="title" /> <input type="submit" value="Add &raquo;" />
						</form>
					</td>
				</tr>
			</table>
			<br />

			{if $config.show_random == 1 && $random}
			<table width="100%" style="background: #FFF; border: 1px solid #CFCFCF; padding: 5px;">
				<tr>
					<td align="center">
						{if $random.image}<a href="index.php?what=movie&amp;do=view&amp;id={$random.id}"><img src="{$config.base_url}{$config.directory_imdb_image}{$random.image_name}" border="0" alt="{$random.title}" /></a><br />{/if}
						<a href="index.php?what=movie&amp;do=view&amp;id={$random.id}">{$random.title}</a> ({$random.year})<br />
						{imdb url=$random.imdb_url}<br />
						<a href="index.php?what=movie&amp;do=random">New Random Movie</a>
					</td>
				</tr>
			</table>
			{/if}

			<br />
			<strong>Quick Stats</strong>
			<ul>
				<li>Items in 'your' collection: <strong>{$stats.collection}</strong></li>
				<li>Items in wishlist: <strong>{$stats.wishlist}</strong></li>

				<li># Movies: <strong>{$stats.total}</strong></li>
				<li>Total movies owned: <strong>{$stats.owned}</strong></li>
				<li><a href="index.php?what=members&amp;do=whos_online">Whos currently logged in</a>: <strong>{$stats.online}</strong></li>
			</ul>
			<form method="post" action="index.php">
			<input type="hidden" name="do" value="feedback" />
			<strong>Feedback</strong><br />
			<textarea cols="30" rows="6" name="feedback">Send feedback to the developers of MM</textarea>
			<input type="submit" value="Send Feedback &raquo;" />
			<input type="button" value="Report Bug/New Feature &raquo;" onclick="_redirect('http://pimp.is-a-geek.com/bugs/');" />
			</form>
		</td>
		{/if}
	</tr>
</table>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center"></td>
			</tr>
		</table>
		<div class="footer">
			Movie Manager {$config.mm_version}<br />
			&copy; Copyright Ben Rowe
		</div>
	</body>
</html>